<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
    <title>Getting Started: Serving Web Content</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>

<form th:action="@{/user/insert}" th:object="${user}" method="post">

    <table  border="1">
        <tr>
            <td>姓名</td>
            <td>年龄</td>
            <td>性别</td>
        </tr>
        <tr>
            <input name="id" type="hidden" th:field="*{id}"/>
            <td><input name="name"  type="text" th:field="*{name}"/></td>
            <td><input name="age" type="text" th:field="*{age}" /></td>
            <td><input name="sex" type="text" th:field="*{sex}" /></td>
        </tr>
    </table>

    <input type="submit" value="Save" /><input type="reset" value="Reset" />
</form>

</body>
</html>